//
//  VideoPlayerView.h
//  Tunnel
//
//  Created by wbb on 2025/6/3.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>

NS_ASSUME_NONNULL_BEGIN

@protocol VideoPlayerViewDelegate <NSObject>
@optional
- (void)videoPlayerViewDidChangeFullScreen:(BOOL)isFullScreen;
@end

@interface VideoPlayerView : UIView

@property (nonatomic, strong) NSURL *videoURL;
@property (nonatomic, weak) id<VideoPlayerViewDelegate> delegate;

- (void)play;
- (void)pause;
- (void)stop;

@end

NS_ASSUME_NONNULL_END
